
package org.crazyoss.service.common.dto;

import java.io.Serializable;
import java.util.Set;

public class ResultAndStatus<T extends Serializable> {

    private T result;
    private Set<T> results;
    private StatusDto status;

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public ResultAndStatus<T> withResult(T result) {
        setResult(result);
        return this;
    }

    public Set<T> getResults() {
        return results;
    }

    public void setResults(Set<T> results) {
        this.results = results;
    }

    public ResultAndStatus<T> withResults(Set<T> results) {
        setResults(results);
        return this;
    }

    public StatusDto getStatus() {
        return status;
    }

    public void setStatus(StatusDto status) {
        this.status = status;
    }

    public ResultAndStatus<T> withStatus(StatusDto status) {
        setStatus(status);
        return this;
    }

}
